package com.tianxiao.faas.api.param.corner;

import java.io.Serializable;
import java.util.List;

public class ShopInfoParam implements Serializable {
    private static final long serialVersionUID = -5688053569836653560L;

    private Long id;

    private String name;

    private List<String> imgs;

    private String logo;

    private String time;

    private String address;

    private String addressDetail;

    private Double latitude;

    private Double longitude;

    private String desc;

    private String story;

    private Long userId;

    private String mobile;

    private double averagePrice;

    private Long categoryId;

    private String poi;

    private String report;

    private String recommendTxt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getImgs() {
        return imgs;
    }

    public void setImgs(List<String> imgs) {
        this.imgs = imgs;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getStory() {
        return story;
    }

    public void setStory(String story) {
        this.story = story;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String address() {
        if (addressDetail == null) {
            return address;
        }
        return address == null ? "" : (address + "###" + addressDetail);
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getPoi() {
        return poi;
    }

    public void setPoi(String poi) {
        this.poi = poi;
    }

    public String getReport() {
        return report;
    }

    public void setReport(String report) {
        this.report = report;
    }

    public String getRecommendTxt() {
        return recommendTxt;
    }

    public void setRecommendTxt(String recommendTxt) {
        this.recommendTxt = recommendTxt;
    }

    public double getAveragePrice() {
        return averagePrice;
    }

    public void setAveragePrice(double averagePrice) {
        this.averagePrice = averagePrice;
    }

    public void initAddress(String address) {
        if (address != null) {
            String[] split = address.split("###");
            setAddress(split[0]);
            if (split.length > 1) {
                setAddressDetail(split[1]);
            }
        }
    }
}
